﻿using OpenCvSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace mrs_copy
{
    internal class DEMO
    {


        /*        //图像灰度
                Mat gray = new Mat();
                Cv2.CvtColor(src, gray, ColorConversionCodes.BGRA2GRAY);

                    //二值化
                    Mat threshold = new Mat();
                //自适应二值化
                //Cv2.AdaptiveThreshold(gray, threshold, 255.0, AdaptiveThresholdTypes.MeanC, ThresholdTypes.Binary, 13, 2);
                //自定义二值
                Cv2.Threshold(gray, threshold, 0, 255, ThresholdTypes.Binary | ThresholdTypes.Otsu);
                    //Cv2.ImShow("gray", threshold);
        */


        /*
        // 对象转json字符串
        string jsStr = Newtonsoft.Json.JsonConvert.SerializeObject(对象)

        //json字符串转对象

        User user=JsonConvert.DeserializeObject<User>("json字符串");
        */











}
}











